/**
 * 环境配置封装
 */

// 短路表达式

const env = import.meta.env.MODE || 'prod'

const EnvConfig = {
    dev: {
        baseApi: "http://121.41.30.105:3030/api",
        mockApi: "https://www.fastmock.site/mock/2e4872fdcfed31d34a0be0782d83f3e1/api"
    },
    test: {
        baseApi: "/api",
        mockApi: "https://www.fastmock.site/mock/2e4872fdcfed31d34a0be0782d83f3e1/api"
    },
    prod: {
        baseApi: "/api",
        mockApi: "https://www.fastmock.site/mock/2e4872fdcfed31d34a0be0782d83f3e1/api"
    },
    "production": {
        baseApi: "http://121.41.30.105:3030/api",
        mockApi: "https://www.fastmock.site/mock/2e4872fdcfed31d34a0be0782d83f3e1/api"
    }
}


export default {
    env,
    // mock: true,
    ...EnvConfig[env],
    namespace:"manage"
}